package com.java;

import java.util.Scanner;

public class Test2 {
    public static void main(String[] args) {
        int count = 0;
        Scanner scanner = new Scanner(System.in);
        do {
            int flag = 1;
            count = scanner.nextInt();
            for (int i = 2; i <= Math.sqrt(count) ; i++) {
                if(count % i == 0) {
                    flag = 0;
                    break;
                }
            }
            if (flag == 1) {
                System.out.println("是的，为素数");
            } else {
                System.out.println("不是");
            }
        }while(count != 0);

    }
}
